import request from '@/utils/request'

// 查询外出申请列表
export function listEgress(query) {
  return request({
    url: '/Egress/Egress/list',
    method: 'get',
    params: query
  })
}

// 查询外出申请详细
export function getEgress(egressId) {
  return request({
    url: '/Egress/Egress/' + egressId,
    method: 'get'
  })
}

// 新增外出申请
export function addEgress(data) {
  return request({
    url: '/Egress/Egress',
    method: 'post',
    data: data
  })
}

// 修改外出申请
export function updateEgress(data) {
  return request({
    url: '/Egress/Egress',
    method: 'put',
    data: data
  })
}

// 删除外出申请
export function delEgress(egressId) {
  return request({
    url: '/Egress/Egress/' + egressId,
    method: 'delete'
  })
}


export function getwccheckedlist(query) {
  return request({
    url: '/system/wecom/getwccheckedlist',
    method: 'get',
  })
}
